﻿@{
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
    ViewBag.Title = "网非e学院--我的收藏";
    var courseList = ViewBag.CourseList as List<XZL.Web.Da.Proc_UserCourse_MyCourseListResult>;
}

<div class="ci_Title">
    <span class="hp_TypeNav">我的收藏</span>
</div>
<div>
    @foreach (var item in courseList)
    {
        <div class="courseBG" onclick="document.location = '../../Course/CourseInfo?CourseID=@item.CourseID&InviteID=@ViewBag.InviteID'">
            <div class="courseItem">
                <img src="@item.CourseImg" class="courseImg" />
                <span class="courseText">
                    <span class="courseTitle">
                        @item.CourseName
                    </span><br />
                    <span>
                        开课时间：@Convert.ToDateTime(item.StartTime).ToString("MM/dd hh:mm")
                    </span><br />
                    <span>
                        @item.TeacherName | @item.TeacherTitle1
                    </span><br />
                    <span>
                        @item.TeacherTitle2
                    </span>
                </span>
            </div>
        </div>
    }
</div>
<script>
    //课程列表通过图片计算显示大小
    var courseHight = ($(".courseImg").eq(0).width()) * 4 / 5;
    $(".courseItem").height(courseHight);
    $(".courseImg").height(courseHight);
    $(".courseText").height(courseHight);

    //底部导航选中
    $("#ImgWode").attr("src", "../../Image/logoWodeSel.png");
</script>